package com.grape.dto;

import com.grape.annotation.ValidDeviceType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 类描述： SysUserCodeDTO类
 *
 * @author  putao
 * @email   2628279194@qq.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserCodeDTO {

    /** 手机号码 */
    @NotBlank(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码")
    private String phone;

    /** 验证码 */
    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    private String code;

    @ValidDeviceType
    @ApiModelProperty(value = "类型")
    private String type;
}
